from flask import Flask, render_template, flash

app = Flask(__name__)
app.config["SECRET_KEY"] = "sadljf"


@app.route("/")
def helloworld():
    # 存储消息
    flash("登录成功")
    response = render_template("Ademo13_flash.html")
    return response


@app.route("/error")
def error():
    # 存储消息
    flash("登录失败")

    return "error"


if __name__ == "__main__":
    app.run(debug=True)
